package com.mage.completeproject.mapper;


import com.mage.completeproject.bean.Employee;

import java.util.List;

//@Mapper或者@MapperScan将接口扫描装配到容器中,使用MapperScan批量扫描所有的Mapper接口，也使得@Autowired自动装配Mapper接口对象能够成功,这两个注解指定这是一个操作数据库的mapper
//在spring主类上添加注解@MapperScan(value = "com.mage.springboot.mapper")，相似于@SpringBootApplication
public interface EmployeeMapper {
    List<Employee> getEmpAll();

    Employee getEmpById(Integer id);

    void insertEmp(Employee employee);

    void updateEmp(Employee employee);

    void deleteEmpById(Integer id);
}
